// 是否为管理员
import {defineStore} from 'pinia'

export const useIsAdmin = defineStore('idAdmin', {
    state: () => {
        return {
            isAdmin: true
        }
    },
    getters: {},
    actions: {
        checkAdmin(statue: number) {
            if (statue == 1) this.isAdmin = true
            else this.isAdmin = false
        }

    }

})
